﻿<UserControl x:Class="LaunchPad.Core.Controls.InventoryControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <DataGrid Name="inventoryListView" ItemsSource="{Binding Inventory}" VerticalAlignment="Stretch" 
                  HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" MouseLeftButtonDown="InventoryListViewMouseLeftButtonDown"
                  MouseMove="InventoryListViewMouseMove" AlternatingRowBackground="#FFECE9E6" GridLinesVisibility="None"
                  AutoGenerateColumns="False" CanUserAddRows="False" CanUserDeleteRows="False">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Name" FontWeight="Bold" Binding="{Binding Path=Product.Name}" Width="Auto" />
                <DataGridTextColumn Header="In Stock" Binding="{Binding InStock}" Width="Auto" />
                <DataGridTextColumn Header="Used" Binding="{Binding Used}" Width="Auto" IsReadOnly="True"/>
                <DataGridTextColumn Header="Remaining" Binding="{Binding Remaining}" Width="*" IsReadOnly="True"/>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</UserControl>
